package com.tech.framework.zmpay.provide;

import java.text.SimpleDateFormat;
import java.util.Date;

import com.alibaba.dubbo.config.annotation.Service;
import com.alibaba.dubbo.rpc.RpcContext;
import com.tech.framework.zmpay.IThirdPay;

/**
 * 
 * @author fattiger.xiaoyang
 * @Date 2015年11月17日下午2:55:13
 */
@Service(version="1.0")
public class ThirdPayImpl implements IThirdPay {

	public String createPayHtml(String message){
		System.out.println("[" + new SimpleDateFormat("HH:mm:ss").format(new Date()) + "] Hello " + message + ", request from consumer: " + RpcContext.getContext().getRemoteAddress());
		return message + " response form provider: " + RpcContext.getContext().getLocalAddress();
	}

}
